package com.fox.stock.mapper;

import com.fox.stock.pojo.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 20555
* @description 针对表【sys_user_role(用户角色表)】的数据库操作Mapper
* @createDate 2025-05-18 16:51:05
* @Entity com.fox.stock.pojo.entity.SysUserRole
*/
public interface SysUserRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    List<String> selectRoleIdByUserId(@Param("userId") String userId);

    int insertBatchIgnore(@Param("list") List<SysUserRole> list);

    void deleteByUserId(@Param("userId") String userId);

    void deleteBatchByUserId(@Param("list") List<Long> list);
}
